package com.Interface.dao;

import java.util.List;
import java.util.Map;

import com.Interface.entity.UserInfo;

public interface UserInfoMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(UserInfo record);

    int insertSelective(UserInfo record);

    UserInfo selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(UserInfo record);

    int updateByPrimaryKey(UserInfo record);
    
    UserInfo selectByLoginId(String id);
    UserInfo selectById(String id);
    
    int updateByCreateTopic(UserInfo record);
    
    int addClassCntByUserId(int id);
    
    int reduceClassCntByUserId(int id);
    
    int addTopicCntByUserId(int id);
    
    int reduceTopicCntByUserId(int id);
    
    int addColletionCntByUserId(int id);
    
    int reduceColletionCntByUserId(int id);

    Map<String, Object> getUserInfoById(int id);
    
    int updateSign(int id);
    
    List<Map<String, Object>>selectIntegral(Map<String, Object> param);
    
    List<Map<String, Object>>selectNotice(Map<String, Object> param);
    
    int insertIntegral(Map<String, Object> param);
    
    int updateIntegral(Map<String, Object> param);
    
    int hasIntegralCount(Map<String, Object> param);
    
    int dayIntegralCnt(Map<String, Object> param);
    
    int getMaxIntegralCnt(Map<String, Object> param);
    
}